/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package za.ac.cput.principles.OCP.fixOCP.config;
import org.springframework.beans.factory.annotation.Configurable;
import org.springframework.context.annotation.Bean;
import za.ac.cput.principles.OCP.fixOCP.FixOCP.IfixOCP;
import za.ac.cput.principles.OCP.fixOCP.FixOCP.impl.LoanApproval;
/**
 *
 * @author Dwayne
 */
@Configurable
public class AppConfig 
{
    @Bean(name = "OCP")
    public IfixOCP IfixOCP() 
    {
        return new LoanApproval();
    }

    @Bean
    public IfixOCP newOCP() 
    {
        return new LoanApproval();
    }

    @Bean(name = "NOCP")
    public IfixOCP LoanApproval()
    {
        return new LoanApproval();
    }
}
